package com.education.service.system;

import com.education.mapper.system.SystemRoleMenuMapper;
import com.education.service.BaseService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 角色菜单业务管理Service
 * @author Jason
 * @version 1.0.0
 * @date 2021-11-21 00:52
 */
@Service
public class SystemRoleMenuService extends BaseService<SystemRoleMenuMapper> {

    public List<Map> getMenuListByRoleIds(Map params) {
        return mapper.getMenuListByRoleIds(params);
    }

    public int deleteByRoleId(Integer id) {
        return mapper.deleteByRoleId(id);
    }

    public int batchDeleteByRoleIds(List<Integer> roleIds) {
        return mapper.batchDeleteByRoleIds(roleIds);
    }
}
